package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcBillMealMapper;
import com.csun.cmny.provider.model.domain.OmcBillMeal;
import com.csun.cmny.provider.model.vo.revise.OldmanSetMealVo;
import com.csun.cmny.provider.service.OmcBillMealService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
@Transactional
public class OmcBillMealServiceImpl extends BaseService<OmcBillMeal> implements OmcBillMealService {

    @Resource
    private OmcBillMealMapper omcBillMealMapper;

    /**
     * query oldman set meal by bill id
     *
     * @param billId the oldman check in bill id
     *
     * @return the oldman set meal vo list.
     */
    @Override
    public List<OldmanSetMealVo> queryOldmanSetMealByBillId(Long billId) {

        return omcBillMealMapper.queryOldmanSetMealByBillId(billId);
    }
}
